<section ng-controller="navbarController as vm">
    <div class="navbar navbar-duomi navbar-static-top" role="navigation" style="margin-top: 15px;">
        <div class="navbar-header">
            <a class="navbar-brand" id="logo">O2O Administractor </a>
        </div>
        <ul class="nav navbar-nav" style="margin-left: 5%;color:red;font-size:18px;font-weight: bold;">
            <li ng-repeat="menu in vm.menus track by $index">
                <a ui-sref="acm.{{menu.state}}">{{menu.displayName}}</a>
            </li>
        </ul>

        <div style="margin-right: 18%;">
            <ul class="nav navbar-nav navbar-right">
                <li><a>user:{{vm.user.username}}&nbsp;&nbsp; </a></li>
                <li><a id="logout" ng-click="vm.signOut()" href="javascript:void(0)"><span class="glyphicon glyphicon-user"></span> &nbsp;&nbsp;Log out</a></li>
            </ul>
        </div>
    </div>

</section>

<div id="wrapper"  style="">
        <div class="col-md-8 col-sm-offset-2" id="content" >
            <ui-view></ui-view>
        </div>
</div>